import random

result = random.randint(1, 25)
count = 4
for i in range(1, 6):
    guess = int(input("请输入您猜的数字："))
    if guess > result:
        print("您猜的数字大了点，您还剩下%d次机会"%(count))
    elif guess < result:
        print("您猜的数字小了点，您还剩下%d次机会"%(count))
    else:
        print("恭喜您答对了。获得了1个金币")
        break
    count -= 1